<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人中心-站内消息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>
<script type='text/javascript' src='<?php echo $this->_webroot('servtools/date/WdatePicker.js'); ?>'></script>
 
</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
            <div class="cont">
<div class="title_uc"><h3>供货商进货统计图表</h3></div>
			<div class="clear" style="height:5px;"></div>
            <hr />
			<div class="clear" style="height:5px;"></div>			
			<div class="search">
				<form action="<?php echo $this->_url('shopcount/stock');?>" method="get" name="search_form" style="float:left;">
					日期：<input class="Wdate" type="text" name="stime" id="stime" onFocus="WdatePicker({isShowClear:false,readOnly:true})" value="<?php echo $stime;?>" /> ~
					<input class="Wdate" type="text" name="etime" id="etime" onFocus="WdatePicker({isShowClear:false,readOnly:true})" value="<?php echo $etime;?>" />
					<input type="submit" name="submit" value="搜索" /></p>
				</form>
			</div>
<div class="clear"  style="height:5px;"></div>
				<table width="100%" class="">
					<tr class="">
					    <th width="50px" >ID</th>
						<th width="50%" >供货商名称</th>
						<th width="25%" >进货总数量</th>
						<th width="25%" >进货总金额</th>												
				   </tr>
					<?php foreach($resultsp as $v) { $v = $v['supplier'];?>				   
					<tr class="trcolor">
						<td ><?php echo $v['sup_user_id'];?></td>					
						<td ><?php echo $v['sup_name'];?></td>
						<td ><?php echo $supdata[$v['sup_user_id']]['num'];?></td>
						<td >￥<?php echo $supdata[$v['sup_user_id']]['countmoney'];?>元</td>						
					</tr>
					<?php }?>

				</table>
				
				<table width="100%" class="">
					<tr class="">
                        <td>
						<h2>各供货商进货总数量比例图</h2>
						<?php echo $chart2;?>
						</td>						
				   </tr>
				</table>
				
				<table width="100%" class="">
					<tr class="">
                        <td>
						<h2>各供货商进货总金额比例图</h2>
						<?php echo $chart1;?>
						</td>						
				   </tr>
				</table>			

	        
			  
            </div>
    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>

</body>
</html>